Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sp for each e2e run #3685

Merged
merged 17 commits into from
Jul 22, 2024
Merged

Conversation

mociarain
Copy link
Collaborator

@mociarain mociarain commented Jul 12, 2024

Which issue this PR addresses:

Ticket

This PR:

@mociarain
Copy link
Collaborator Author

/azp run ci,e2e

@hawkowl
Copy link
Collaborator

hawkowl commented Jul 15, 2024

Don't we need the unique SPs for the production E2E?

@rolandmkunkel rolandmkunkel force-pushed the mociarain/create-sp-for-each-e2e-run branch from b310715 to fe0eafd Compare July 16, 2024 14:14
@mociarain mociarain force-pushed the mociarain/create-sp-for-each-e2e-run branch 2 times, most recently from 9d5697d to b05cc92 Compare July 17, 2024 10:17
@mociarain
Copy link
Collaborator Author

Don't we need the unique SPs for the production E2E?

Not in the new tenant 😎

@@ -714,13 +728,28 @@ func (c *Cluster) deleteCluster(ctx context.Context, resourceGroup, clusterName
return nil
}

func (c *Cluster) deleteClusterResourceGroup(ctx context.Context, resourceGroup string) error {
func (c *Cluster) ensureResourceGroupDeleted(ctx context.Context, resourceGroupName string) error {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added due to some racey deletions and some stuff not getting cleaned up correctly in the new tenant. AFAIK in the past we were letting the VnetRG get cleaned up via the purge:true flag (https://github.com/Azure/ARO-RP/pull/3513/files @tsatam can you confirm this). This just makes all the deletion a bit more explicit but we still have the purge script as a fall back

@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@Azure Azure deleted a comment from rolandmkunkel Jul 18, 2024
@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@Azure Azure deleted a comment from rolandmkunkel Jul 18, 2024
@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@Azure Azure deleted a comment from azure-pipelines bot Jul 18, 2024
@mociarain
Copy link
Collaborator Author

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mociarain mociarain changed the title Mociarain/create sp for each e2e run Create sp for each e2e run Jul 18, 2024
@mociarain mociarain force-pushed the mociarain/create-sp-for-each-e2e-run branch from dcb5ece to 042fc45 Compare July 18, 2024 13:49
@mociarain mociarain force-pushed the mociarain/create-sp-for-each-e2e-run branch from 042fc45 to a941ecd Compare July 18, 2024 16:12
@mociarain
Copy link
Collaborator Author

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

pkg/util/cluster/cluster.go Outdated Show resolved Hide resolved
pkg/util/cluster/cluster.go Show resolved Hide resolved
@mociarain
Copy link
Collaborator Author

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mociarain mociarain merged commit b264f5c into master Jul 22, 2024
20 checks passed
@mociarain mociarain deleted the mociarain/create-sp-for-each-e2e-run branch July 22, 2024 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants